export function isPositiveInteger(str: string): boolean {  
    /**
     * 正则表达式：判断是否为正整数
    */
    return /^[1-9]\d*$/.test(str);  
}


export function validPassword(password_string: string): boolean {
    const regex = /^(?=.*[a-zA-Z])(?=.*\d)[a-zA-Z\d]{8,12}$/;
    return regex.test(password_string);
}